<?php
class GrabTweet extends AppModel {
    var $name = 'GrabTweet';
    var $primaryKey = '_id';
    var $useDbConfig = 'mongo';
    var $useTable = false;

    function schema() {
        $this->_schema = array(
            '_id' => array('type' => 'integer', 'primary' => true, 'length' => 40),
            'geo' => array('type' => 'string'),
            'in_reply_to_screen_name' => array('type' => 'string'),
            'place' => array('type' => 'string'),
            'coordinates' => array('type' => 'string'),
            'contributors' => array('type' => 'string'),
            'favorited' => array('type' => 'string'),
            'in_reply_to_user_id' => array('type' => 'string'),
            'source' => array('type' => 'string'),
            'in_reply_to_status_id' => array('type' => 'string'),
            'user' => array('type' => 'string'),
            'truncated' => array('type' => 'string'),
            'created_at' => array('type' => 'string'),
            'id' => array('type' => 'string'),
            'text' => array('type' => 'string'),
            'hashtags' => array('type' => 'string'),
            'urls' => array('type' => 'string'),
            'mentions' => array('type' => 'string'),
            'replyto' => array('type' => 'string'),
        );

        return $this->_schema;
    }

    function getCollection() {
        return $this->getDataSource()->getCollection($this);
    }

    function getDb() {
        return $this->getDataSource()->getDb($this);
    }
}
?>
